class Qusue{
    constructor(...items){
        this.items = items
    }
    enqueue = (...element)=>{
        this.items = [...this.items,...element]
    }
    dequeue = ()=>{
        let node = this.items.shift()
        return node
    }
    peek = ()=>{
        return this.items[0]
    }
    isEmpty = ()=>{
        return this.items.length ===0
    }
    size = ()=>{
        return this.items.length;
    }
    toString = ()=>{
         return this.items.join(' ');
    }
}